<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <my-cpn></my-cpn>
</div>


<script src="../../js/vue.js"></script>

<script>
    // 语法糖全局注册组件
    /*Vue.component('myCpn',{
        template: "<div><h2>语法糖注册组件</h2></div>"
    });*/

    const object = {
        template: `<div><h2>语法糖注册组件</h2></div>`
    }
    const app = new Vue({
        el: "#app",
        data: {
            message: "Hello vue,你好！"
        },
        methods: {
            
        },
        components: {
            myCpn: object
        }
    });
</script>
</body>
</html>